<template>
  <div class="tab-con">
    <table>
      <thead>
        <tr><slot name="tabHeader"></slot></tr>
      </thead>
      <tbody>
        <tr v-for="(item, index) in cloose" :key="item.id">
          <slot name="tabBody" v-bind:rowData="item" v-bind:in="index"></slot>
        </tr>
      </tbody>
    </table>
  </div>
</template>

<script>
export default {
  props: {
    cloose: Array,
  },
};
</script>

<style scoped>
.tab-con img {
  width: 20px;
  height: 20px;
}
</style>